using System.Collections.Generic;
using Microsoft.Xna.Framework;

namespace SolarWinds.Animations
{
    public class AnimationManager : GameComponent
    {
        private readonly List<Animation> mAnimations;

        public List<Animation> Animations
        {
            get { return mAnimations; }
        }

        public AnimationManager(Game game)
            : base(game)
        {
            mAnimations = new List<Animation>();
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            foreach (Animation animation in mAnimations)
            {
                animation.Update(gameTime);
            }
        }
    }
}